project(Raytracer)

#-----------------------------------------------------------------------------
# Requires a recent version of CMake
cmake_minimum_required(VERSION 2.6)

if(UNIX AND NOT APPLE)
  set(LINUX TRUE)
endif()

ENABLE_TESTING()
set(TESTING_BIN_DIR ${PROJECT_BUILD_DIR}/tests)
message(${TESTING_BIN_DIR})

set(BoostComponents date_time
  filesystem
  program_options
  regex
  serialization
  signals
  system
  thread
  unit_test_framework)

find_package(Boost COMPONENTS ${BoostComponents} REQUIRED)

include_directories(SYSTEM ${Boost_INCLUDE_DIR})

include_directories ("${PROJECT_SOURCE_DIR}/libSingleton")
add_subdirectory (libSingleton)

include_directories ("${PROJECT_SOURCE_DIR}/libImage")
add_subdirectory (libImage)

#include_directories ("${PROJECT_SOURCE_DIR}/libFileIO")
#add_subdirectory (libFileIO)

#include_directories ("${PROJECT_SOURCE_DIR}/libLogger")
#add_subdirectory (libLogger)
 
add_executable(raytracer utilities/raytracer.cpp)
target_link_libraries (raytracer    
   Image
   )

